<template>
	<!-- 商城 -->
	<view class="content">
		<view class="topImg">
			<image src="https://tse1-mm.cn.bing.net/th/id/OIP-C.LG8qlUNT548EEWKcq_8oEQHaEK?pid=ImgDet&rs=1" mode="widthFix"></image>
		</view>
		<view class="main">
			<view class="m_nav">
				<view class="banner">
					<image src="/static/img/1.png" mode="widthFix"></image>
					<view class="title">线上购票</view>
				</view>
				<view class="banner">
					<image src="/static/img/3.png" mode="widthFix"></image>
					<view class="title">酒店名宿</view>
				</view>
				<view class="banner">
					<image src="/static/img/4.png" mode="widthFix"></image>
					<view class="title">特色美食</view>
				</view>
				<view class="banner">
					<image src="/static/img/8.png" mode="widthFix"></image>
					<view class="title">银杏商店</view>
				</view>
			</view>
			<!-- 特色名宿 -->
			<view class="recommend recommend1">
				<view class="title">
					<text class="t_left">特色名宿</text>
					<text>全部 ></text>
				</view>
				<view class="imgList">
					<view class="l_buttom">
						<scroll-view class="scroll-view_H" scroll-x="true" scroll-left="0"
								:show-scrollbar="false">
								<view class="box">
									<view id="demo1" class="img">
										<view class="imgbox">
											<image src="https://img.zcool.cn/community/01a6ba5d14399ba801215529291194.jpg@1280w_1l_2o_100sh.jpg" mode=""></image>
											<view class="text">
												千年银杏谷永兴生活馆
											</view>
											<view class="score">
												4.8
											</view>
										</view>
									</view>
									<view id="demo2" class="img">
										<view class="imgbox">
											<image src="https://img.zcool.cn/community/013dab5b94e132a80121a0f7109fea.jpg@1280w_1l_2o_100sh.jpg" mode=""></image>
											<view class="text">
												千年银杏谷永兴生活馆
											</view>
											<view class="score">
												4.9
											</view>
										</view>
									</view>
									<view id="demo3" class="img">
										<view class="imgbox">
											<image src="https://www.sohodd.com/wp-content/uploads/2020/06/27-Orchis-House_ZhiXing-Architecture-Office.jpg" mode=""></image>
											<view class="text">
												千年银杏谷永兴生活馆
											</view>
											<view class="score">
												5.0
											</view>
										</view>
									</view>
								</view>
							</scroll-view>
					</view>
				</view>
			</view>
			<!-- 纪念佳品 -->
			<view class="recommend recommend2">
				<view class="title">
					<text class="t_left">纪念佳品</text>
					<text>全部 ></text>
				</view>
				<view class="imgList">
					<view class="l_left">
						<view class="box">
							<view class="img">
								<image src="https://tse3-mm.cn.bing.net/th/id/OIP-C.h785ZaRIv7C8lVeQpeN5fwHaEo?pid=ImgDet&rs=1" mode="widthFix"></image>
							</view>
							<view class="text">
								千年银杏谷手提袋
							</view>
						</view>
						<view class="box">
							<view class="img">
								<image src="https://tse3-mm.cn.bing.net/th/id/OIP-C.h785ZaRIv7C8lVeQpeN5fwHaEo?pid=ImgDet&rs=1" mode="widthFix"></image>
							</view>
							<view class="text">
								银杏谷明信片
							</view>
						</view>
					</view>
					<view class="l_right">
						<view class="box">
							<view class="img">
								<image src="https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fimg.alicdn.com%2Fi4%2F2209110930284%2FO1CN010JrC2e1Dy777QcpZa_%21%212209110930284.jpg&refer=http%3A%2F%2Fimg.alicdn.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1658652514&t=7e78097fad25e7c9b405cb5743db820f" mode="widthFix"></image>
							</view>
							<view class="text">
								商品1号
							</view>
						</view>
						<view class="box">
							<view class="img">
								<image src="https://tse3-mm.cn.bing.net/th/id/OIP-C.h785ZaRIv7C8lVeQpeN5fwHaEo?pid=ImgDet&rs=1" mode="widthFix"></image>
							</view>
							<view class="text">
								商品2号
							</view>
						</view>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		onShow() {

		}
	}
</script>

<style lang="less">
	@radius: 16rpx; //圆角
	@h1: 36rpx; //大标题
	@h2: 32rpx; //二级标题
	@h3: 28rpx; //三级标题
	@text: 24rpx; //四级标题、标签、说明文字
	//颜色
	@color1: #C78748;
	@color2: #FFBF81;
	@color3: #673A19;
	@color4: #42BAE7;
	@color5: #5D9319;
	@color6: #E0593B;
	@color7: #FFF9EF;
	//间距
	@interval1: 72rpx;
	@interval2: 48rpx;
	@interval3: 32rpx;
	@interval4: 16rpx;
	.content{
		font-size: @text;
	}
	.topImg {
		height: 300rpx;
		width: 750rpx;
		overflow: hidden;
		image {
			width: 750rpx;
		}
	}

	.main {
		margin-top: -@radius;
		width: 686rpx;
		border-radius: @radius;
		background-color: @color7;
		padding: @interval3;
	}

	.m_nav {
		display: flex;
		justify-content: space-between;
		margin-bottom: @interval4;
		.banner {
			text-align: center;

			image {
				width: ceil((750 - 64) / 5rpx);
				height: ceil((750 - 64) / 5rpx);
			}

			.title {
				font-size: @h3;
			}
		}
	}
	
	.recommend {
		margin-bottom: @interval3;
	
		.title {
			display: flex;
			justify-content: space-between;
			.t_left {
				font-size: @h2;
			}
		}
	}
	
	.recommend1 .imgList {
		.l_buttom .box{
			display: flex;
			.img{
				width: 536rpx;
				margin-left: @interval4;
			}
			.imgbox{
				margin-top: @interval3;
				width: 536rpx;
				height: 300rpx;
				overflow: hidden;
				border-radius: @radius;
				position: relative;
				.text{
					width: 536rpx;
					text-align: center;
					color: #FFF;
					position: absolute;
					bottom: @interval4;
					left: 50%;
					transform: translateX(-50%);
				}
				.score{
					position: absolute;
					top: 0;
					left: 0;
					font-size: @text;
					width: 3em;
					text-align: center;
					border-radius: @radius 0 @radius 0;
					background-color: @color2;
				}
			}
			image {
				width: 536rpx;
				position: absolute;
				top: 0;
				left: 0;
			}
			&>.img:first-child{
				margin-left: 0;
			}
		}
	}
	.recommend2 .imgList {
		display: flex;
		justify-content: space-between;
		flex-wrap:wrap;
		.box{
			.img{
				margin: @interval4 0;
				border-radius: @radius;
				overflow: hidden;
				font-size: 0;
			}
			image{
				width: ceil((750 - 64 - @interval4) / 2);
			}
			.text{
				margin-bottom: @interval3;
			}
		}
	}
	.recommend2{
		margin-bottom: 0;
	}
</style>
